import glob
import os
import pandas as pd
import shutil

from tqdm import tqdm

# 读取Excel文件
df = pd.read_excel('/Users/user/Desktop/tt/TCGA_clinical_survival.xlsx', sheet_name='brca')
dict_list = df.to_dict(orient='records')

wsi_folder = "/media/hsmy/GIST-1/smu/新建文件夹/"
target_move_folder = "/media/hsmy/16TB/20240724GIST/GIST_SM"
for row in tqdm(dict_list):
    bar_code = str(row['bcr_patient_barcode'])
    p_type = str(row['type'])
    # p1 = os.path.join(wsi_folder, f'*{file_name}*.svs')
    # files = glob.glob(p1)

